<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
.STYLE3 {color: #707070; font-size: 12px; }
.STYLE5 {color: #0a6e0c; font-size: 12px; }
a:link{text-decoration:none}
body {
	margin-top: 0px;
	margin-bottom: 0px;
}
.STYLE7 {font-size: 12}
-->
</style>
</head>

<body>

<s:actionerror/>
<center>
<input type="button" name="button1" value="添加学生" onclick="window.location.href='<%=path%>/web/StudentM/StudentAdd.jsp'" />
 </center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
 <table width="60%" border="0" cellpadding="0" cellspacing="1" bgcolor="#c9c9c9">
      <tr>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">用户名</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">密码</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">用户类型</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">操作</span></strong></div></td>
      </tr>
    
   <s:iterator value="userList" id="userList" var="u"> 
      <tr>
        <td height="22" bgcolor="#FFFFFF"><div align="center" class="STYLE5">${u.sno}</div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center" class="STYLE5">${u.upassword}</div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center" class="STYLE5">${u.utype}</div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center" class="STYLE5"><div align="center">
        
         <form action="ByUnoUser.action">
         	<input type="hidden" name="user.sno" value="${u.sno}" />
         	<input type="submit" value="修改"/>
         </form>
         <!--<form action="delUser.action">
         	<input type="hidden" name="user.sno" value="${u.sno}" />
         	<input type="submit" value="删除"/>
         </form>
       --></div></div></td>
      </tr>

 </s:iterator>  

    </table>
  </tr>

</table>
</body>
</html>

